{% set product = orderItem.getProduct() %}
{% set urlSave = pimcore_url() %}

<form action="{{ urlSave }}" method="post">
    <input type="hidden" name="csrfToken" value="{{ pimcore_csrf.getCsrfToken() }}">
    <div class="modal-header">
        <h5 class="modal-title">{{ orderItem.getProductName() }} <small>{{ ('bundle_ecommerce.back-office.order.item-complaint')|trans([],'admin') }}</small></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    <div class="modal-body">

        <div class="form-group row col-sm-6">
            <label class="sr-only" for="inputAmount">{{ ('bundle_ecommerce.back-office.order.quantity')|trans([],'admin') }} ({{ orderItem.getAmount() }})</label>
            <div class="input-group">
                <div class="input-group-text input-group-prepend">{{ ('bundle_ecommerce.back-office.order.quantity')|trans([],'admin') }} ({{ orderItem.getAmount() }})</div>
                <input type="number" name="quantity" value="{{ orderItem.getAmount() }}" id="inputAmount" class="form-control" />
            </div>
        </div>

        <div class="row form-group">
            <label class="col-sm-12" for="message">{{ ('bundle_ecommerce.back-office.order.item-complaint.message')|trans([],'admin') }}</label>
            <div class="col-sm-12"><textarea class="form-control" name="message" id="message" rows="6"></textarea></div>
        </div>

    </div>
    <div class="modal-footer">
        <button type="submit" class="btn btn-primary" name="confirmed" value="1">{{ ('bundle_ecommerce.back-office.order.item-complaint')|trans([],'admin') }}</button>
    </div>
</form>
